﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            AiLuoKe alk = new AiLuoKe();
            alk.heroname = "埃洛科";
            alk.heroinfo = "埃洛科来自帝国边境的勇士";
            alk.attack = 85;
            alk.defense = 60;
            alk.speed = 40;
            alk.skill="碎石打击,烈焰锚钩,战斗咆哮";
            alk.Ok();
            alk.Print();
            

            Taila tl = new Taila();
            tl.heroname = "泰拉";
            tl.heroinfo = "泰拉来自帝国边境的勇士";
            tl.attack = 75;
            tl.defense = 60;
            tl.speed = 60;
            tl.skill = "巨浪冲击,元素突击,复仇杀戮";
            tl.Ok();
            tl.Hello();


            Lukasi lks = new Lukasi();
            lks.heroname = "卢卡斯";
            lks.heroinfo = "卢卡斯来自帝国边境的勇士";
            lks.attack = 80;
            lks.defense = 45;
            lks.speed = 60;
            lks.skill = "减速陷阱,能量浪潮,旋风剑舞";
           lks.Ok();
            lks.Hello();


        }
    }
    class Person
    {
        public string heroname;
        public string heroinfo;
        public int attack;
        public int defense;
        public int speed;
        public Person() { }
        public Person(string heroname, string heroinfo, int attack, int defense, int speed)
        {
            this.heroname = heroname;
            this.heroname = heroinfo;
            this.attack = attack;
            this.speed = speed;
            this.defense = defense;
        }
        public void Print()
        {
            Console.WriteLine("名字：{0}；简介：{1};攻击：{2}；防御：{3}；速度：{4}；", this.heroname, this.heroinfo, this.attack, this.defense, this.speed);
        }

    }
    class AiLuoKe : Person
    {
        private int weight;
        public string skill;

        public AiLuoKe() { }

        public AiLuoKe(string heroname, string heroinfo, int attack, int defense, int speed, int weight, string skill)
        {
            this.heroname = heroname;
            this.heroinfo = heroinfo;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
            this.weight = weight;
            this.skill = skill;
        }
        public void Ok()
        {
            Console.WriteLine("技能：{0}", this.skill);
        }

     

        public int Weight
        {
            get { return this.weight; }
            set { this.weight = value; }
        }
        public string Skill
        {
            get { return this.skill; }
            set { this.skill = value; }
        }

    }
    class Taila : Person
    {
        private int weight;
        public string skill;

        public Taila() { }

        public Taila(string heroname, string heroinfo, int attack, int defense, int speed, int weight, string skill)
        {
            this.heroname = heroname;
            this.heroinfo = heroinfo;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
            this.weight = weight;
            this.skill = skill;
        }
        public void Ok()
        {
            Console.WriteLine("技能：{0}", this.skill);
        }

        public void Hello()
        {
            base.Print();
            Console.WriteLine("体重：{0}", this.weight);
        }

        public int Weight
        {
            get { return this.weight; }
            set { this.weight = value; }
        }

    }
    class Lukasi : Person
    {
        private int weight;
        public string skill;

        public Lukasi() { }

        public Lukasi(string heroname, string heroinfo, int attack, int defense, int speed, int weight, string skill)
        {
            this.heroname = heroname;
            this.heroinfo = heroinfo;
            this.attack = attack;
            this.defense = defense;
            this.speed = speed;
            this.weight = weight;
            this.skill = skill;
        }
        public void Ok()
        {
            Console.WriteLine("技能：{0}", this.skill);
        }

        public void Hello()
        {
            base.Print();
            Console.WriteLine("体重：{0}", this.weight);
        }

        public int Weight
        {
            get { return this.weight; }
            set { this.weight = value; }
        }

    }
}
